/**
 * 
 */
package com.thor.palmmall.rest.tenant;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.commons.entity.BeanOperateInfo;
import com.thor.commons.exception.ThorServiceException;
import com.thor.commons.query.QueryResult;
import com.thor.palmmall.rest.common.AUserGroupLoadParam;

/**
 * @author NuoSa
 *
 * @since 1.0
 */
@Path("/tenant")
@Produces(MediaType.APPLICATION_JSON + "; charset=utf-8")
@Consumes(MediaType.APPLICATION_JSON + "; charset=utf-8")
public interface ATenantService {

  @POST
  @Path(value = "/query")
  public QueryResult<ATenant> query(ATenantQueryParam queryParam) throws ThorServiceException;

  @POST
  @Path(value = "/{id}")
  public ATenant get(@PathParam("id") String id, AUserGroupLoadParam queryParam)
      throws ThorServiceException;
  
  @POST
  @Path(value = "/save")
  public String save(ATenant tenant, @QueryParam("") BeanOperateInfo operateInfo)
	      throws ThorServiceException;
}
